$OpenBSD: patch-source_tools_pdfclean_c,v 1.3 2016/12/12 10:54:39 sthen Exp $

add pledge(2) to "mutool clean"

--- source/tools/pdfclean.c.orig	Mon Nov 28 13:34:04 2016
+++ source/tools/pdfclean.c	Mon Dec 12 09:39:02 2016
@@ -77,6 +77,12 @@ int pdfclean_main(int argc, char **argv)
 		outfile = argv[fz_optind++];
 	}
 
+	if (pledge("stdio rpath wpath cpath", NULL) == -1)
+	{
+		fprintf(stderr, "pledge: %s\n", strerror(errno));
+		exit(1);
+	}
+
 	ctx = fz_new_context(NULL, NULL, FZ_STORE_UNLIMITED);
 	if (!ctx)
 	{
